<?php
$contact = $this->contact;
?>
<div class="mainpage">
    <div class="row-fluid">
        <div class="span4">
            <table class="table table-striped table-enquire" style="border:1px solid #ddd">
                <caption>Customer Information</caption>
                <tr>
                    <td>Full name</td>
                    <td><input class="input-v" type="text" value="<?php echo $contact['full_name']; ?>" ></td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td><input class="input-v" type="text" value="<?php echo $contact['email']; ?>"></td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td><input class="input-v" type="text" value="<?php echo $contact['phone'] ?>"></td>
                </tr>
                <tr>
                    <td>Status</td>
                    <td>
                    	<?php
                    	function status($rs) {
 			  				return ($rs['status'] == M_DbTable_Contact::STATUS_ACTIVE)?
                                                '<a href="##" class="ajax-link popup hint must-confirm label label-success" data-ajax-to="/admin/contact/change-value?p=status&id=' . $rs['id'] . '" data-must-confirm-msg="thay đổi ?" title="thay đổi" data-after-ajax="Checked">New</a>' :
                                                '<a href="##" class="ajax-link popup hint must-confirm label label-warning" data-ajax-to="/admin/contact/change-value?p=status&id=' . $rs['id'] . '" data-must-confirm-msg="thay đổi ?" title="thay đổi" data-after-ajax="New">Checked</a>';
						}
						echo status($contact);
                    	?>
                    </td>
                </tr>
            </table>
        </div>

        <div class="span8">
        	<span class="table-caption title">Subject and Content</span>
        	<input class="input-v input-xlager  alert-info alert-block" type="text" value="<?php echo $contact['subject'] ?>">
        	<textarea rows="20" class="enquire-content"><?php echo $contact['message'] ?></textarea>
        </div>
    </div>
</div>
<style>
	.title {
		width : 100%;
		font-size: 13px;
		float: left;
	}
	.enquire-title {
		text-align: center;
		width : 100%;
		float: left;
	}
	.enquire-content {
		width : 100%;
		margin-top: 20px;
		float: left;
	}
	.input-xlager {
		width: 500px;
	}
</style>